package com.aynu.gulimall.auth.feign;

import com.aynu.common.utils.R;
import com.aynu.gulimall.auth.vo.UserLoginVo;
import com.aynu.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author mj
 * @version 1.0
 * @date 2021/3/20 11:58
 */
@FeignClient(value = "gulimall-member")
public interface MemberFeignService {
    /**
     * 用户注册
     * @param vo
     * @return
     */
    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo vo);

    /**
     * 登陆
     * @param vo
     * @return
     */
    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo vo);
}
